package com.huawei.hms.support.api.sns;

import com.huawei.hms.core.aidl.IMessageEntity;
import com.huawei.hms.support.api.PendingResultImpl;
import com.huawei.hms.support.api.client.ApiClient;
import com.huawei.hms.support.api.client.Result;
import com.huawei.hms.support.api.client.Status;
import com.huawei.hms.support.api.entity.sns.internal.GetIMStatusResp;
import com.huawei.hms.support.log.HMSLog;

class HuaweiSnsApiImpl$7 extends PendingResultImpl<IMStatusResult, GetIMStatusResp> {
    HuaweiSnsApiImpl$7(ApiClient apiClient, String str, IMessageEntity iMessageEntity) {
        super(apiClient, str, iMessageEntity);
    }

    public /* synthetic */ Result onComplete(IMessageEntity iMessageEntity) {
        return a((GetIMStatusResp) iMessageEntity);
    }

    public IMStatusResult a(GetIMStatusResp getIMStatusResp) {
        IMStatusResult iMStatusResult = new IMStatusResult();
        iMStatusResult.setStatus(Status.SUCCESS);
        iMStatusResult.setImStatus(getIMStatusResp.getOnlineStatus());
        HMSLog.i("HuaweiSnsApiImpl", "getIMStatus onComplete");
        return iMStatusResult;
    }
}
